From: Kenichi Handa Date: Mon, 19 Aug 2002 06:39:06 +0000 (+0000) Subject: (sgml-xml-auto-coding-function): Call X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~31110 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=9fdb4856b20e6ef34cba0540583c3544dab2c54a;p=emacs.git (sgml-xml-auto-coding-function): Call re-search-forward with NOERROR t.. --- diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 6cc905603e4..e937d11030e 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el @@ -2003,7 +2003,7 @@ Analogous to `define-translation-table', but updates (defun sgml-xml-auto-coding-function (size) "Determine whether the buffer is XML, and if so, its encoding. This function is intended to be added to `auto-coding-functions'." - (when (re-search-forward "\\`[[:space:]\n]*<\\?xml") + (when (re-search-forward "\\`[[:space:]\n]*<\\?xml" nil t) (let ((end (save-excursion ;; This is a hack. (re-search-forward "\"\\s-*\\?>" size t))))